package com.qezhhnjy.cloud.feign.controller;

import com.qezhhnjy.cloud.feign.service.ScheduleServiceHi;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author qezhhnjy
 * @date 2020/7/30-0:04
 */
@RestController
public class HiController {

    @Resource
    private ScheduleServiceHi serviceHi;

    @GetMapping("/hi")
    public String hi(@RequestParam String name) {
        return serviceHi.hiFromClient(name);
    }
}
